home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
radbasis.nnc
< prev
next >
Wrap
Text File
|
1993-08-23
|
3KB
|
82 lines
csv3.8 ! Control Strategy Version 3.8
LisaRisa trace aux3
L_saR_sa cset recall,0
!
! >>>>> Recall Mode <<<<<
L_saR_sa lset in,0
L___R_sa io read
L___R_sa cset layer,-1
@LAB_000
L___R_sa lset cur,1
L___R_sa math sum
L___R_sa math rnoise|tran|output
L___R_sa lcmp out,-1
L___R_sa blt @LAB_000
L___R_sa lset out,0
L___R_sa io rcltst
L___R_sa math sum|ce=e|tran|output|e-=w|swap
L___R_sa io write
!
! >>>>> Learn Mode <<<<<
! Input layer
L_saR___ lset in,0
L_saR___ io lrnin
L_saR___ math sum|fire|lnoise|tran|output
! Transform over preprocessing layers
@LAB_001
L_saR___ lset cur,1
L_saR___ fcmp learnf,ll:none
L_saR___ bne @LAB_002
L_saR___ math sum|fire
L_saR___ math fire|tran|output
L_saR___ brct @LAB_001
@LAB_002
! Assume that first learning layer is radial basis layer
! Now check if we have reached end of learn schedule
L_saR___ math e=0 ! Artifact for Designer Pack to call nn_setlrs
L_saR___ ccmp wrk1,0
L_saR___ bgt @LAB_006
L_saR___ fcmp lflag,eols
L_saR___ banz @LAB_007 !End of k-means, do p-nn if Moody/Darken
L_saR___ math sum|fire|tran|output|learn !do k-means
L_saR___ br @LAB_005
! End of schedule for k-means. Moody/Darken error function is
! PNN which will find the basis function widths.
@LAB_007
L_saR___ math e-=w|fire
L_saR___ cset wrk1,1 !Flag that p-NN has been done
!
@LAB_006
L_saR___ math sum|fire|tran|output|e=0
L_saR___ cset wrk2,0
! We might have a sequence of layers above the radial basis
! layer. First feed-forward to the output layer
@LAB_003
L_saR___ lset cur,1
L_saR___ cadd wrk2,1 !Count number hidden/output layers
L_saR___ math sum|fire
L_saR___ math lnoise|tran|output|e=0|fire
L_saR___ lcmp out
L_saR___ blt @LAB_003
! Now we are at the output layer. Read in the desired output and
! do back-prop learning down to the radial basis layer
L_saR___ io lrnrslt ! result of feed-forward
L_saR___ io lrnout ! desired output
L_saR___ math e-=w|e*=ef|fire !calculate error,scale with errfac
@LAB_004
L_saR___ math ce=e|e*=f'|backp|fire
L_saR___ math learn|fire ! delayed learning for recurrence
L_saR___ lset cur,-1 ! previous layer
L_saR___ csub wrk2,1 ! Don't go below hidden
L_saR___ ccmp wrk2,0
L_saR___ bgt @LAB_004
@LAB_005
LisaRisa trace 0